<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="xm"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/backnav.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/admin.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/adminmemberlist.css">
<script type="text/javascript">
	function deleteMer(memberId){
		if(confirm("您是否确认删除会员")){
			location.href='<%=request.getContextPath()%>/adminFilter/admin_member?m=deleteMember&memberId='+memberId;
		}
	}
	function merDetail(memberId){
		location.href='<%=request.getContextPath()%>/adminFilter/admin_member?m=memberListAndDetail&memberId='+memberId;
	}
</script>
</head>
<body>
 	<div id="top">
 		<jsp:include page="/comm/backTop.jsp"></jsp:include>
 	</div>
    <div id="left">
        <jsp:include page="/comm/backnav.jsp"></jsp:include>
    </div>
    <div id="right">
        <div class="right">
        	<div class="main">
		 	 	 <table border="1">
		 	 	 	<tr>
		 	 	 		<td class="td-th" colspan="7">会员管理</td>			
		 	 	 	</tr>
		 	 	 	 <tr>
		 	 	 	 	 <th width="75px">用户ID</th>
		 	 	 	 	 <th>用户账号</th>
		 	 	 	 	 <th>用户姓名</th>
		 	 	 	 	 <th>用户电话</th>
		 	 	 	 	 <th>地址</th>
		 	 	 	 	 <th>邮箱</th>
		 	 	 	 	 <th>操作</th>
		 	 	 	 	 
		 	 	 	 </tr>
		 	 	 	 <xm:forEach items="${membersList }" var="mer">
	                <tr>
	                   <td>${mer.id }</td>
	                   <td>${mer.loginName }</td>
	                   <td>${mer.memberName }</td>
	                   <td>${mer.phone }</td>
	                   <td>${mer.address }</td>
	                   <td>${mer.email }</td>
	                   <td>
	                       <a class="font_red" href="javascript:merDetail(${mer.id })">详情</a>
	                       <a href="javascript:deleteMer(${mer.id })">删除</a>
	                   </td>
	                </tr>
                </xm:forEach>
	 	       	</table>
	 	 	</div>
        </div>
    </div>
</body>
</html>
